package Action;

import PO.CutOffDatePage;
import PO.ZhaoBiaoPage;
import com.epwk.action.Action;
import com.epwk.action.JSExecutor;
import com.epwk.action.MouseAction;
import com.epwk.tools.DateFormat;
import org.openqa.selenium.By;
import Action.*;

/**
 * Created by Administrator on 2016/11/24.
 */
public class ZhaoBiao {

    public static void zhaobiao(int valueid,int day) throws InterruptedException {
        //        滚动滚动条
        JSExecutor.jsExecutor("var q=document.documentElement.scrollTop=1300");

//       招标任务
        Action.click(ZhaoBiaoPage.model_tb);
        Action.click(ZhaoBiaoPage.zhaobiao);
//        选择招标金额：0代表100-1000元；1代表1000-5000元；2代表5000-10000；3代表10000-3000；4代表3w-5w；5代表5w-10w；6代表10w以上
        MouseAction.selectValue(ZhaoBiaoPage.cash,valueid);

//        截止时间
//        CutOffDate.cutOffDate(day,type);

        Action.clear(CutOffDatePage.CutOffDate);
        Action.sendkeys(CutOffDatePage.CutOffDate,DateFormat.beforeORLateDate(day,DateFormat.COMMON_DATE_FORMAT));


    }

}
